﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Win.DAL;
using Win.Model;

namespace Win.BLL
{
    public class UserBLL
    {
        private UserDAL userDAL = new UserDAL();
        public user GetUser(string username,string passwd)
        {
            return userDAL.GetUser(username, passwd);
        }

        public List<user> GetList()
        {
            return userDAL.GetList();
        }

        public void AddUser(string username,string passwd)
        {
            userDAL.AddUser(username, passwd);
        }

        public void DelUser(int id)
        {
            userDAL.DelUser(id);
        }

        public void UpdateUser()
        {
            userDAL.UpdateUser();
        }
    }
}
